package com.how.warlock.engine;

public class AnimationTimer {
	private int time;
	
	private long lastTime;
	
	public AnimationTimer (int time){
		this.time = time;
	}
	
	public boolean checkTime(){
		long currentTime = System.currentTimeMillis();
		if ((currentTime - lastTime) > time ){
			lastTime = currentTime;
			return true;
		} else return false;
	}
}
